{extend name="common:base" /}

{block name="main"}
<style>
    .aaa:hover{
        transform: scale(1.5);
    }
</style>
<!--body wrapper start-->
<div class="wrapper">
    <div class="pull-left">
        <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
    </div>
    <div class="row">
        <div class="col-md-12">
            <!--breadcrumbs start -->
            <ul class="breadcrumb panel">
                <li><a href="{:url('Index/index')}"><i class="fa fa-home"></i> 控制台</a></li>
                <li><a href="{:url('index')}">礼物音乐</a></li>
                <li class="active">礼物列表</li>
            </ul>
            <!--breadcrumbs end -->
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <header class="panel-heading col-xs-12 ">
                <div class="form-group">
                    <a href="{:url('gift/gift_add')}"  class="btn btn-success" title="添加礼物">添加礼物</a>
                </div>
            </header>
            <section class="panel">
                <div class="panel-body">
                    <form class="ids" action="" method="post">
                        <table class="table">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>礼物名称</th>
                                <th>价格</th>
                                <th>图片</th>
                                <th>时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name='data' id='v'}
                            <tr>
                                <td>{$v.id}</td>
                                <td>{$v.gift_name}</td>
                                <td>{$v.gift_price}</td>
                                <td><img style="border-radius: 50%" width="50" src="{$v.gift_img}" class="aaa"></td>
                                <td>{$v.create_at}</td>
                                <td>
                                    <a href="{:url('gift/gift_edit',['id'=>$v['id']])}" class="fa fa-edit" title="编辑"></a>
                                    <a href="{:url('gift/gitf_delete',['id'=>$v['id']])}" class="fa fa-times confirm " onclick="return confirm('确定删除?');" title="删除"></a>
                                </td>
                            </tr>
                            {/volist}

                            </tbody>
                        </table>
                    </form>

                </div>
            </section>
            {$page}
        </div>

    </div>
</div>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript">

</script>
<!--body wrapper end-->
{/block}
